<?php
namespace app\serverfavorite\model;

use \app\manage\model\BaseModel;
// 商品分类模型层
class Favorite extends BaseModel
{
	protected $name = 'favorite';
    protected $connection = 'db_config_favorite';
    protected $dateFormat = 'Y-m-d';

    public function setSnapshootAttr($value)
    {
        return json_encode($value);
    }
   
    public function getSnapshootAttr($value)
    {
        return json_decode($value);
    }

    public function setUserInfoAttr($value)
    {
        return json_encode($value);
    }
   
    public function getUserInfoAttr($value)
    {
        return json_decode($value);
    }
  
}